<template>
	<view class="padding-lr32" :key="refreshKey">
		<uv-parse style="color: #000;" :content="detail.content"></uv-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				detail: '',
				refreshKey:0
			}
		},
		onLoad(option) {
			this.title = option.title;
			uni.setNavigationBarTitle({
				title: option.title
			});
			this.getDetail();
		},
		onShow(){
			this.refreshKey += 1;
		},
		methods: {
			getDetail() {
				var that = this;
				uni.$uv.http.post('/staticContent/findByTitle', {
					title: that.title,
				}).then(res => {
					that.detail = res.data;
				});
			},
		}
	}
</script>

<style>
page {
	height: auto !important;
	background: url('/static/img/my_bg.png') no-repeat;
	background-size: 100% 100%;
}
</style>